package com.effectiv.crm.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.ImportResource;

//TODO - Replace with Spring Security 3.2.RELEASE java config in future
@Configuration
@ImportResource({"classpath*:spring-security.xml"})
public class SecurityConfiguration  {
	
	/*
	@Override
	protected void configure(AuthenticationManagerBuilder auth)
			throws Exception {

		auth.inMemoryAuthentication().withUser("dhrubo").password("password")
				.roles("USER");
		
		super.configure(auth);
	}

	@Override
	protected void configure(HttpSecurity http) throws Exception {
		http.csrf()
		.disable()
		.authorizeRequests()
		.anyRequest()
		.authenticated()
				.and().formLogin()
				//.loginProcessingUrl("/guest/j_spring_security_check")
				.failureUrl("/guest/loginfailed")
				.defaultSuccessUrl("/home/dashboard")
				.loginPage("/guest/signin").permitAll();
	}

	@Override
	public void configure(WebSecurity web) throws Exception {
		web.ignoring().antMatchers("/webjars/**");
	}
	*/
}
